package com.liuya.safe.client.pojo;

import com.liuya.base.BaseModel;

public class AppUserType extends BaseModel {
    private String appName;

    private String appDescription;

    private String userTypeName;

    private String userMetadataStr;

    public String getAppDescription() {
        return appDescription;
    }

    public void setAppDescription(String appDescription) {
        this.appDescription = appDescription == null ? null : appDescription.trim();
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName == null ? null : appName.trim();
    }

    public String getUserTypeName() {
        return userTypeName;
    }

    public void setUserTypeName(String userTypeName) {
        this.userTypeName = userTypeName == null ? null : userTypeName.trim();
    }

    public String getUserMetadataStr() {
        return userMetadataStr;
    }

    public void setUserMetadataStr(String userMetadataStr) {
        this.userMetadataStr = userMetadataStr == null ? null : userMetadataStr.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", appName=").append(appName);
        sb.append(", userTypeName=").append(userTypeName);
        sb.append(", userMetadataStr=").append(userMetadataStr);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppUserType other = (AppUserType) that;
        return (this.getAppName() == null ? other.getAppName() == null : this.getAppName().equals(other.getAppName()))
            && (this.getUserTypeName() == null ? other.getUserTypeName() == null : this.getUserTypeName().equals(other.getUserTypeName()))
            && (this.getUserMetadataStr() == null ? other.getUserMetadataStr() == null : this.getUserMetadataStr().equals(other.getUserMetadataStr()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAppName() == null) ? 0 : getAppName().hashCode());
        result = prime * result + ((getUserTypeName() == null) ? 0 : getUserTypeName().hashCode());
        result = prime * result + ((getUserMetadataStr() == null) ? 0 : getUserMetadataStr().hashCode());
        return result;
    }
}